$OpenBSD: patch-lib_Poppler_pm,v 1.2 2016/01/12 16:34:12 sthen Exp $
--- lib/Poppler.pm.orig	Thu Jan  7 15:15:21 2016
+++ lib/Poppler.pm	Tue Jan 12 16:17:40 2016
@@ -101,7 +101,6 @@ use warnings;
 use Carp qw/croak/;
 use Cwd qw/abs_path/;
 use Exporter;
-use File::ShareDir;
 use Glib::Object::Introspection;
 use URI::file;
 use FindBin;
@@ -202,7 +201,7 @@ my @_POPPLER_HANDLE_SENTINEL_BOOLEAN_FOR = qw/
 sub import {
 
   Glib::Object::Introspection->setup (
-    search_path => File::ShareDir::dist_dir('Poppler'),
+    search_path => '${LOCALBASE}/lib/girepository-1.0',
     basename    => $_POPPLER_BASENAME,
     version     => $_POPPLER_VERSION,
     package     => $_POPPLER_PACKAGE,
